switchroot: Allow letting ostree-prepare-root mount /var
authorJonathan Lebon <jonathan@jlebon.com>
Thu, 7 Jun 2018 18:42:42 +0000 (14:42 -0400)
committerAtomic Bot <atomic-devel@projectatomic.io>
Thu, 7 Jun 2018 21:41:32 +0000 (21:41 +0000)
commitecdebeb20e232e5ec373be25a8cbf106180fcc0a
tree0934aebd231c37a4c6e9a6d2ee919f22181012f7
parent6f3b5620de29654624eea1c3e6691c46be058dc8
switchroot: Allow letting ostree-prepare-root mount /var

In some scenarios, it might make sense to let `ostree-prepare-root` do
the `/var` mount from the state root as before. For example, one may
want to do some system configuration before the switch root. This of
course comes at the expense of supporting `/var` as a mount point in
`/etc/fstab`.

Closes: #1617
Approved by: cgwalters
src/switchroot/ostree-mount-util.h
src/switchroot/ostree-prepare-root.c
src/switchroot/ostree-system-generator.c